﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/admin/admin.master" AutoEventWireup="true" CodeBehind="ActiveUserList.aspx.cs" Inherits="web.admin.ActiveUserList" 
    Title="链接列表" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript" type="text/javascript" src="../JavaScripts/common.js"></script>
    <table class="SubMenu_Item" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td class="Current_Item" id="TD1"><a id="listUrl" href="ActiveUserList.aspx" runat="server">活跃用户列表</a></td>
                                <td class="Default_Item" id="TD2"><a id="addUrl" href="ActiveUserAdd.aspx" runat="server">添加活跃用户</a></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>

    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <%--<tr>
                <td  style="FONT-SIZE: 12px">
                    <asp:Label ID="GroupName" runat="server"/>
                    <asp:Label ID="label1" Text="新闻检索：" runat="server" />&nbsp;
                    <asp:TextBox ID="keyWord" Text="" runat="server"  Columns="40"/>&nbsp;
                    <asp:Button runat="server" ID="search" text="检索" OnClick="search_Click"/> &nbsp;
                    <asp:Button ID="DeleteBtn" runat="server" Text="删除选中项" OnClick="DeleteBtn_Click" OnClientClick='return confirm("确定要删除吗?")' />
                </td>
                <br />
            </tr>--%>
	        <tr>
	            <td>
                   <asp:GridView ID="activeUserList" runat="server" AutoGenerateColumns="False"  DataKeyNames="id" SkinID="orange">
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="Label3" Text="用户名" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label4" Text='<%# Eval("username") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="30%" HorizontalAlign="Left"/>
                            </asp:TemplateField>
                            
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="Label5" Text="是否简介引用用户" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label6" Text='<%# Eval("IsRecommended") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="12%" HorizontalAlign="Left"/>
                            </asp:TemplateField>       
                            <%--      
                            <%if <%# Eval("IsRecommended")>>0%>                    
                            <asp:HyperLinkField Text="修改" DataNavigateUrlFields="Id"  DataNavigateUrlFormatString="UserListEdit.aspx?id={0}" />      
                            <%else%>
                            <asp:HyperLinkField Text="修改" DataNavigateUrlFields="Id"  DataNavigateUrlFormatString="UserListEdit.aspx?id={0}" />  
                            <%if%>
                            --%>                       
                            <asp:HyperLinkField Text="删除" DataNavigateUrlFields="Id"  DataNavigateUrlFormatString="ActiveUserList.aspx?id={0}&cmd=0" />
                            <asp:HyperLinkField Text="设为简介引用用户" DataNavigateUrlFields="Id"  DataNavigateUrlFormatString="ActiveUserList.aspx?id={0}&cmd=2" />
                            <asp:HyperLinkField Text="设为非简介引用用户" DataNavigateUrlFields="Id"  DataNavigateUrlFormatString="ActiveUserList.aspx?id={0}&cmd=1" />
                                                    
                        </Columns>
                    </asp:GridView> 
	            </td>
	        </tr>
	    </tbody>
    </table>	  
</asp:Content>
